package com.zqxx.examine.management.controller.page.admin;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zqxx.examine.management.service.QuestionService;
import com.zqxx.examine.model.question.Field;

@Controller
public class DashBoardPageAdmin
{
  @Autowired
  private QuestionService questionService;
  
  @RequestMapping(value={"/admin/dashboard"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
  public String dashboardPage(Model model)
  {
    List<Field> fieldList = this.questionService.getAllField(null);
    

    model.addAttribute("fieldList", fieldList);
    return "dashboard";
  }
}
